]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js: Fix util_translate_time_string() usage
authorBastien Nocera <hadess@hadess.net>
Sat, 8 Nov 2014 16:45:13 +0000 (17:45 +0100)
committerBastien Nocera <hadess@hadess.net>
Sat, 8 Nov 2014 20:55:16 +0000 (21:55 +0100)
util_translate_time_string() was called to use LC_TIME to translate
strings, but those strings were not marked as to be translated.

https://bugzilla.gnome.org/show_bug.cgi?id=739822

js/ui/dateMenu.js
js/ui/screenShield.js

index c46938a28629d70b1707e718baf4d06118e9ed29..7ff75f788a86c728a6308fb547a5782edb0a629b 100644 (file)
@@ -129,7 +129,7 @@ const DateMenuButton = new Lang.Class({
                 /* Translators: This is the date format to use when the calendar popup is
                  * shown - it is shown just below the time in the shell (e.g. "Tue 9:29 AM").
                  */
-                let dateFormat = Shell.util_translate_time_string ("%A %B %e, %Y");
+                let dateFormat = Shell.util_translate_time_string (N_("%A %B %e, %Y"));
                 this._date.set_label(now.toLocaleFormat(dateFormat));
             }
         }));
index 485e0ef61cd6ecb3de41b3c3bc549ceec384a777..03e457c9069df1966d4c7ae8f3e47ad93d5653e8 100644 (file)
@@ -85,7 +85,7 @@ const Clock = new Lang.Class({
         let date = new Date();
         /* Translators: This is a time format for a date in
            long format */
-        let dateFormat = Shell.util_translate_time_string("%A, %B %d");
+        let dateFormat = Shell.util_translate_time_string(N_("%A, %B %d"));
         this._date.text = date.toLocaleFormat(dateFormat);
     },